// 管理员路由配置
const AdminLogin = () => import("../views/admin/AdminLogin.vue");
const AdminDashboard = () => import("../views/admin/AdminDashboard.vue");

const adminRoutes = [
  {
    path: "/admin/login",
    component: AdminLogin,
    name: "AdminLogin",
    meta: {
      title: "管理员登录",
      header: false,
      requiresAuth: false,
      isAdminRoute: true
    },
  },
  {
    path: "/admin/dashboard",
    component: AdminDashboard,
    name: "AdminDashboard",
    meta: {
      title: "管理员控制台",
      header: false,
      requiresAuth: false, // 在组件内部处理认证
      isAdminRoute: true
    },
  }
];

export default adminRoutes;